﻿@model IEnumerable<vngoodlife.MenuList>

	<a href="javascript:;" id="hide_menu">&laquo;</a>
	<ul id="main_menu">
		<li><a href="@Url.Action("Index", "Home")" target="_blank" ><img src="../../../Content/Admin/images/icon_home.png" alt="Home"/>Home</a></li>

        @foreach (var item in Model)
        {
            if (Boolean.Parse(Html.Action("CheckAdminRoleInMenu", "MenuList", new { menuListID = item.MenuListID }).ToHtmlString()))
            {
                <li><a href="@Url.Action(item.ActionName, item.ControllerName)" target="_blank" ><img src="../../../Content/images/backend/@item.Image" 
                    alt="Home"/>@item.MenuName</a></li>
            }
        }

    </ul>
	<br class="clear"/>